<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
	</head>
	<body>
		<script>
			// 默认
			var date1 = new Date()
			console.log('date1', date1)

			// dateString
			var date2 = new Date('2022-08-08')
			console.log('date2', date2)

			// 年, 月, 日, 时, 分, 秒
			var date3 = new Date(2022, 08, 08, 12, 00, 32)
			console.log('date3', date3)

			// 时间戳
			var date4 = new Date(10000)
			console.log('date4', date4)
		</script>
	</body>
</html>
